1
L'evoluzione dell'intelligenza artificiale generativa: Dalle regole al ragionamento
AI011Lesson 1
00:00

L'evoluzione dell'intelligenza artificiale generativa: Dalle regole al ragionamento

La storia dell'intelligenza artificiale è caratterizzata da un cambiamento fondamentale: passare dalla programmazione umana esplicita alla previsione statistica basata su schemi. Questa evoluzione permette all'IA moderna di svolgere compiti complessi ragionamento compiti.

1. Che cosa: L'era delle regole

L'IA precoce si basava su Sistemi Esperti. In questi sistemi, ogni risposta o azione possibile era codificata manualmente dagli esseri umani utilizzando rigide logica IF-THEN.

  • Vincolo: Questi sistemi erano fragili. Non riuscivano a gestire sfumature, gergo, errori di battitura o qualsiasi situazione al di fuori della loro programmazione specifica e codificata a mano.

2. Perché: Il balzo statistico

Il balzo è arrivato grazie alla capacità di elaborare enormi quantità di dati non etichettati. Invece di regole manuali, Modelli Linguistici Grandi (LLM) apprendono relazioni statistiche tra le parole.

  • Il Transformer: Un'architettura rivoluzionaria di modelli introdotta nel 2017.
  • Meccanismo di attenzione: Un componente fondamentale del Transformer che consente al modello di pesare l'importanza di diverse parole in una sequenza per comprendere il contesto profondo (ad esempio, capire a cosa si riferisce "esso" in un lungo paragrafo).

3. Come: Dalla previsione al ragionamento

L'intelligenza artificiale generativa moderna è fondamentalmente non deterministica. Calcola la distribuzione di probabilità del "prossimo token" piuttosto che seguire un albero decisionale fisso.

Prevedendo ripetutamente la parola piĂą probabile sulla base dell'intero contesto precedente, il modello genera contenuti creativi e sembra "ragionare" attraverso istruzioni complesse fornite in linguaggio naturale.

Il tranello della probabilitĂ 
L'IA non è un database di fatti; è un motore statistico. Poiché prevede semplicemente la parola più probabile successiva, può cadere nel tranello delle "allucinazioni"—presentando informazioni errate con assoluta sicurezza.
evolution_logic.py
TERMINALbash — 80x24
> Ready. Click "Run" to execute.
>
Question 1
What is the primary difference between rule-based chatbots and modern Generative AI?
Rule-based bots use neural networks, while GenAI uses decision trees.
Rule-based bots follow fixed scripts, while GenAI predicts responses based on patterns and probability.
Rule-based bots can reason, while GenAI only retrieves facts.
There is no difference; they are just different marketing terms.
Question 2
What does the 'Attention Mechanism' in a Transformer model do?
It ensures the user is paying attention to the output.
It searches the internet for the most accurate facts.
It allows the model to weight the importance of different parts of the input text.
It translates the text into binary code.
Challenge: Designing a Tutoring App
Apply your knowledge of AI evolution.
You are designing a tutoring app. You need to choose between a rule-based "if-then" system and an LLM.
Task 1
Identify a scenario where the rule-based system would fail but the LLM would succeed.
Solution:
Handling a student asking the same question in a creative or slang-heavy way (e.g., "Yo, how do I do math?" vs "Please explain the equations."). A rule-based system would likely throw an error if the exact phrasing wasn't programmed.
Task 2
Suggest a "Metaprompt" to ensure the LLM doesn't just give the answer but acts like a tutor.
Solution:
"You are a helpful tutor. Do not provide direct answers. Instead, ask leading questions to help the student find the solution themselves."